package com.tianji.learning.service;

import com.tianji.learning.domain.po.PointsRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.vo.PointsStatisticsVO;
import com.tianji.learning.enums.PointsRecordType;

import java.util.List;

/**
 * <p>
 * 签到记录 服务类
 * </p>
 *
 * @author huanmo
 * @since 2025-09-24
 */
public interface IPointsRecordService extends IService<PointsRecord> {

    void addPointsRecord(Long userId, int points, PointsRecordType type);

    List<PointsStatisticsVO> queryMyPointsToday();

    List<PointsRecord> selectBySeason(Integer season);

    void deleteBySeason(Integer season);

    boolean batchInsertToTargetTable(String targetTableName, List<PointsRecord> pointsRecordList);

    List<PointsRecord> selectBySeasonWithShard(Integer season, int shardIndex, int shardTotal);

}